package org.jeecg.modules.demo.com.kunpeng.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.com.kunpeng.entity.OaCustomerContact;
import org.jeecg.modules.demo.com.kunpeng.mapper.OaCustomerContactMapper;
import org.jeecg.modules.demo.com.kunpeng.service.IOaCustomerContactService;
import org.jeecg.modules.demo.com.kunpeng.vo.OaCustomerContactListByShareIdVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class OaCustomerContactServiceImpl extends ServiceImpl<OaCustomerContactMapper, OaCustomerContact> implements IOaCustomerContactService {

    @Autowired
    private OaCustomerContactMapper oaCustomerContactMapper;

    /**
     * 根据客户id获取联系人列表
     */
    @Override
    public List<OaCustomerContactListByShareIdVO> OaCustomerContactListByCid(Integer cid) {
        List<OaCustomerContactListByShareIdVO> oaCustomerContactListByShareIdVOS = oaCustomerContactMapper.OaCustomerContactListByCid(cid);
        return oaCustomerContactListByShareIdVOS;
    }
}
